﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200147F RID: 5247
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TriggerVoiceScRsp : IMessage<TriggerVoiceScRsp>, IMessage, IEquatable<TriggerVoiceScRsp>, IDeepCloneable<TriggerVoiceScRsp>, IBufferMessage
	{
		// Token: 0x1700421B RID: 16923
		// (get) Token: 0x0600EABB RID: 60091 RVA: 0x00273978 File Offset: 0x00271B78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TriggerVoiceScRsp> Parser
		{
			get
			{
				return TriggerVoiceScRsp._parser;
			}
		}

		// Token: 0x1700421C RID: 16924
		// (get) Token: 0x0600EABC RID: 60092 RVA: 0x0027397F File Offset: 0x00271B7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TriggerVoiceScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700421D RID: 16925
		// (get) Token: 0x0600EABD RID: 60093 RVA: 0x00273991 File Offset: 0x00271B91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TriggerVoiceScRsp.Descriptor;
			}
		}

		// Token: 0x0600EABE RID: 60094 RVA: 0x00273998 File Offset: 0x00271B98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TriggerVoiceScRsp()
		{
		}

		// Token: 0x0600EABF RID: 60095 RVA: 0x002739A0 File Offset: 0x00271BA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TriggerVoiceScRsp(TriggerVoiceScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EAC0 RID: 60096 RVA: 0x002739C5 File Offset: 0x00271BC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TriggerVoiceScRsp Clone()
		{
			return new TriggerVoiceScRsp(this);
		}

		// Token: 0x1700421E RID: 16926
		// (get) Token: 0x0600EAC1 RID: 60097 RVA: 0x002739CD File Offset: 0x00271BCD
		// (set) Token: 0x0600EAC2 RID: 60098 RVA: 0x002739D5 File Offset: 0x00271BD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EAC3 RID: 60099 RVA: 0x002739DE File Offset: 0x00271BDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TriggerVoiceScRsp);
		}

		// Token: 0x0600EAC4 RID: 60100 RVA: 0x002739EC File Offset: 0x00271BEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TriggerVoiceScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EAC5 RID: 60101 RVA: 0x00273A1C File Offset: 0x00271C1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EAC6 RID: 60102 RVA: 0x00273A5B File Offset: 0x00271C5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EAC7 RID: 60103 RVA: 0x00273A63 File Offset: 0x00271C63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EAC8 RID: 60104 RVA: 0x00273A6C File Offset: 0x00271C6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EAC9 RID: 60105 RVA: 0x00273AA0 File Offset: 0x00271CA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EACA RID: 60106 RVA: 0x00273ADE File Offset: 0x00271CDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TriggerVoiceScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EACB RID: 60107 RVA: 0x00273B0F File Offset: 0x00271D0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EACC RID: 60108 RVA: 0x00273B18 File Offset: 0x00271D18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005CF3 RID: 23795
		private static readonly MessageParser<TriggerVoiceScRsp> _parser = new MessageParser<TriggerVoiceScRsp>(() => new TriggerVoiceScRsp());

		// Token: 0x04005CF4 RID: 23796
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005CF5 RID: 23797
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04005CF6 RID: 23798
		private uint retcode_;
	}
}
